//
//  Phone.m
//  OC03_属性
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Phone.h"

@implementation Phone

- (instancetype)initWithType:(NSString *)type
                      colour:(NSString *)colour
                        size:(float)size {
    self = [super init];
    if (self) {
        
        /** 三种方法 */
//        self.type = type;
//        [self setType:type];
//        
        _type = type;
  
        _colour = colour;
        _size = size;
    }
    return self;
}

+ (instancetype)phoneWithType:(NSString *)type
                       colour:(NSString *)colour
                         size:(float)size {
    Phone *phone = [[Phone alloc] initWithType:type colour:colour size:size];
    return phone;
}



- (void)callPhone {
    NSLog(@"黑6给王艳打电话,yueme");
}


















@end
